package com.vans.micro.order;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.client.loadbalancer.LoadBalanced;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.openfeign.EnableFeignClients;

@SpringBootApplication(exclude = {DataSourceAutoConfiguration.class})
@EnableEurekaClient
@MapperScan("com.vans.**")
@EnableFeignClients(basePackages = {"com.vans.api.feign.order","com.vans.api.feign.user"})
@EnableDiscoveryClient

public class VansMicroOrderApplication {

    @LoadBalanced
    public static void main(String[] args) {
        SpringApplication.run(VansMicroOrderApplication.class, args);
    }

}
